package com.usdt.web.controller.cp.activity;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.usdt.common.core.domain.R;
import com.usdt.system.domain.resp.ActivityCustomerRespVO;
import com.usdt.system.service.cp.CustomerService;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;

@RestController
@Slf4j
@RequestMapping("/customer")
@Tag(name = "客户")
public class CustomerController {
	
	@Autowired
	private CustomerService customerService;
	
   @GetMapping("/list")
    @Operation(summary ="列表")
    public R<List<ActivityCustomerRespVO>> list(
    		@Schema(description = "关键词")@RequestParam(value = "keyWord", required = false) String keyWord
    		) {
    	
    	return R.ok(customerService.list(keyWord));
    }
}
